﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom.Compiler;

namespace MartinCarolan.EventSpy
{
    public class CompilationException : Exception
    {
        public CompilerResults CompilationResult { get; private set; }

        public CompilationException(CompilerResults result)
            : base("An exception occured whilst compiling an event handler")
        {
            CompilationResult = result;
        }
    }
}
